package com.sportswork.sportswork.core.service.impl;

import com.sportswork.sportswork.core.entity.Ktinfo;
import com.sportswork.sportswork.core.entity.Rcpxfa;
import com.sportswork.sportswork.core.mapper.KtinfoMapper;
import com.sportswork.sportswork.core.mapper.RcpxfaMapper;
import com.sportswork.sportswork.core.service.IKtinfoService;
import com.sportswork.sportswork.core.service.IRcpxfaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author dengwei
 * @date 2020/2/3 12:02
 * @description
 */
@Slf4j
@Service
@Transactional
public class RcpxfaServiceImp implements IRcpxfaService {

    @Resource
    private RcpxfaMapper rcpxfaMapper;


    @Override
    public Rcpxfa addRcpxfa(Rcpxfa rcpxfa) {
        rcpxfaMapper.addRcpxfa(rcpxfa);
        return rcpxfa;
    }

    @Override
    public Rcpxfa getRcpxfa(String id) {
        return rcpxfaMapper.getRcpxfa(id);
    }

    @Override
    public Rcpxfa getRcpxfaByNumber(String number) {
        return rcpxfaMapper.getRcpxfaByNumber(number);
    }

    @Override
    public List<Rcpxfa> getAllRcpxfas(String zy,String id) {
        return rcpxfaMapper.getAllRcpxfas(zy,id);
    }

    @Override
    public void deleteRcpxfa(String id) {
        rcpxfaMapper.deleteRcpxfa(id);
    }

    @Override
    public void deleteRcpxfas(String ids) {
        rcpxfaMapper.deleteRcpxfas(ids);
    }

    @Override
    public Rcpxfa setKtinfo(Rcpxfa rcpxfa) {
        rcpxfaMapper.setRcpxfa(rcpxfa);
        return rcpxfa;
    }
}
